package ac_0716;

public class Ex_04 {
	int a;
	String b;

	public static void main(String[] args) {				
		short a = 10;
		short b = 20;
		short c = (short)(a+b);
		System.out.println(c);
		
		int sum = 0;
		for(int i = 0; i<4; i++) {
			for(int j = 0; j<i; j++) {
				System.out.print("i = " + i + ", j = " + j + " ");
				if(i%2 ==0 || j%2 == 0) break;
				sum += j;
				System.out.print("sum  = " + sum + " ");
			}
			System.out.println();
		}		
		System.out.println(sum);
	}
}
